﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Web;
using System.Net;

namespace DNNSocialBookmark.Core
{
    public class FriendFeedEntry : Bookmark
    {
        public FriendFeedEntry()
        {
            this.BaseUri = "http://friendfeed-api.com/v2/";
        }

        public override void Post()
        {
            var client = new WebClient();

            var values = new NameValueCollection();
            values["body"] = this.Description;
            values["link"] = this.SourceUrl;
            client.UploadValues(this.BaseUri, "POST", values);
        }
    }
}